import { Service, stationPath } from "common/static/index";
import { DataSourceSelectArguments, DataSourceSelectResult } from "maishu-wuzhui";
import { User } from "entities";

export class MemberService extends Service {
    private url(path: string) {
        let url = `/AdminMember/${path}`;
        return url;
    }

    async members(args: DataSourceSelectArguments) {

        let url = this.url(`Member/List`);
        let users = await this.getByJson<DataSourceSelectResult<User>>(url, args);

        return users;
    }
}
